package com.tiancheng.trade.payment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tiancheng.trade.payment.channel.bo.UnifiedOrderSettleBO;
import com.tiancheng.trade.payment.model.PaymentBill;
import com.tiancheng.trade.payment.model.PaymentFlowDetail;
import com.tiancheng.trade.payment.model.PaymentOrder;

import java.util.List;

/**
 * 支付账单 service
 */
public interface IPaymentBillService extends IService<PaymentBill> {
    /**
     * 下单时生成账单信息
     * @param paymentOrder 主流水
     * @param flowDetails 子订单流水
     * @param subSettles 结算信息
     * @return
     */
    boolean genBill(PaymentOrder paymentOrder, List<PaymentFlowDetail> flowDetails, List<UnifiedOrderSettleBO> subSettles);
}
